#pragma once

#include <list>
#include <map>
#include <string>
struct strRunError
{
	long _time;
	std::string _error;

	strRunError(const TCHAR* err);
	static long Now();

};

class CErrorService
{
public:
	CErrorService(void);
	~CErrorService(void);
	static CErrorService& Instance()
	{
		static CErrorService instance;
		return instance;
	}

public:
	std::list<strRunError> m_errors;
	void SetLastError(const strRunError& err)
	{
		m_errors.push_back(err);
	}
	void SetLastError(const TCHAR* msg)
	{
		strRunError err(msg);
		m_errors.push_back(err);
	}


	
};
